package com.lixinlei.springboot_servlet.controller.argumentsresolver.RequestHeader;

import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping(path = "/request/header")
public class RequestHeaderController {

    @RequestMapping(path = "/path1")
    public List<String> path1(@RequestHeader List<String> accept) {
        System.out.println("*****************path1()");
        return accept;
    }

}
